package com.zhilei.feign;

import com.zhilei.grace.result.GraceJSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 远程调用openFeign，指定远程调用的服务名，需要跟nacos的保持一致
 *
 * @author 志磊
 */
@FeignClient("resume-service-9001")
public interface ResumeMicroServiceFeign {

    /**
     * 远程调用生成简历的接口
     *
     * @param userId
     * @return
     */
    @PostMapping("/resume/init")
    GraceJSONResult init(@RequestParam("userId") String userId);
}
